infiltrate (someone's) ranks

Translations
проникнуть в ряды (кого-то)
The spy managed to infiltrate the enemy's ranks.
Шпиону удалось проникнуть в ряды врага.
Definitions
To secretly enter and become part of a group or organization, often with the intention of gathering information or influencing its activities from within.